package fantasyday.wowzolo.web.catalog;

import fantasyday.wowzolo.web.common.BasePage;
import fantasyday.wowzolo.web.common.ViewCategoryPageLink;

import org.apache.wicket.markup.html.basic.Label;

public class IndexPage extends BasePage {
	@SuppressWarnings("serial")
	public IndexPage() {
		add(new Label("welcome", "Welcome!") {
			@Override
			public boolean isVisible() {
				return getJpetstoreSession().isSignon();
			}
		});

		add(new ViewCategoryPageLink("viewCategoryFish1", "FISH"));
		
		add(new ViewCategoryPageLink("viewCategoryFish2", "FISH"));

		add(new ViewCategoryPageLink("viewCategoryDog1", "DOG"));
		
		add(new ViewCategoryPageLink("viewCategoryDog2", "DOG"));

		add(new ViewCategoryPageLink("viewCategoryReptile1", "REPTILE"));
		
		add(new ViewCategoryPageLink("viewCategoryReptile2", "REPTILE"));

		add(new ViewCategoryPageLink("viewCategoryCat1", "CAT"));
		
		add(new ViewCategoryPageLink("viewCategoryCat2", "CAT"));

		add(new ViewCategoryPageLink("viewCategoryBird1", "BIRD"));
		
		add(new ViewCategoryPageLink("viewCategoryBird2", "BIRD"));
		
		add(new ViewCategoryPageLink("viewCategoryBirdMain", "BIRD"));
	}
}
